<template>
  <!-- 头部组件 -->

  <div class="topNavWrapper">
    <!-- iconjiantou2：左箭头 
    @click="$router.back()"  :  点击后退到前一个页面
    -->
    <span class="iconfont iconjiantou2" @click="$router.back()"></span>
    <div class="title">{{titleText}}</div>
  </div>
</template>

<script>
export default {
  props: ["titleText"]
};
</script>

<style lang="less" scoped>
.topNavWrapper {
  display: flex;
  padding: 0 6.667vw;
  height: 16.667vw;
  align-items: center;
  .title {
    flex: 1;
    text-align: center;
    font-size: 5vw;
    color: #333;
    font-weight: 700;
  }
}
</style>